package br.ufc.histogram;

public class HistogramPosition implements Comparable<HistogramPosition> {
	private int count;
	private float minBound;
	private float maxBound;
	private String vm;
	
	public HistogramPosition(int count, float minBound, float maxBound) {
		super();
		this.count = count;
		this.minBound = minBound;
		this.maxBound = maxBound;
	}
	
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public float getMinBound() {
		return minBound;
	}
	public void setMinBound(float minBound) {
		this.minBound = minBound;
	}
	public float getMaxBound() {
		return maxBound;
	}
	public void setMaxBound(float maxBound) {
		this.maxBound = maxBound;
	}
	public String getVm() {
		return vm;
	}
	public void setVm(String vm) {
		this.vm = vm;
	}
	
	public void increaseCount() {
		this.count++;
	}

	@Override
	public int compareTo(HistogramPosition o) {
		
		if (this.count < o.count) {
            return -1;
        }

        if (this.count > o.count) {
            return 1;
        }
		
		return 0;
	}
}
